package org.sfx.rich

case class RichJavaCollection[T](delegate: java.util.Collection[T]) {
  def addDistinct(value: T): Boolean = {
    if (delegate.contains(value)) {
      return false
    } else {
      delegate.add(value)
      return true
    }
  }
}
